import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import ApplyLaboratory from '@/components/login/ApplyLaboratory'
import UserLogin from '@/components/login/UserLogin'
import WeekAnnals from '@/components/backManagement/WeekAnnals'
import memberManagement from '@/components/backManagement/memberManagement'
import ApplyLaboratoryList from '@/components/backManagement/ApplyLaboratoryList'
import memberManagementList from '@/components/backManagement/memberManagementList'
import laboratoryIntroduction from '@/components/recrptionIndex/LaboratoryIntroduction'
import projectIntroduction from '@/components/recrptionIndex/ProjectIntroduction'
import projectManagement from '@/components/backManagement/ProjectManagement'
import upLoadAssembly from '@/components/backManagement/upLoadAssembly'

import BackHome from '@/components/backManagement/BackHome'

import MemberIntroduction from '@/components/recrptionIndex/MemberIntroduction'

import Journal from '@/components/backManagement/Journal'
import MenuManager from '@/components/backManagement/MenuManager' //菜单管理界面


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
    },
     {
      path: '/UserLogin',//登陆界面
      name: 'UserLogin',
      component: UserLogin,
      children: [
      {
        path: 'ApplyLaboratory',
        name: 'ApplyLaboratory',
        component: ApplyLaboratory
      }
      ]
    },
     
        // {
        // path: 'first',
        // name: 'first',
        // component: First
        // } 
    {          
      path: '/ApplyLaboratoryList',//周志路由
      name: 'ApplyLaboratoryList',
      component: ApplyLaboratoryList
    },
     {          
      path: '/WeekAnnals',//周志路由
      name: 'WeekAnnals',
      component: WeekAnnals
    },
     {          
      path: '/memberManagement',//周志路由
      name: 'memberManagement',
      component: memberManagement
    },
     {          
      path: '/memberManagementList',//周志路由
      name: 'memberManagementList',
      component: memberManagementList
    },
    {
      path: '/laboratoryIntroduction',
      name: 'laboratoryIntroduction',
      component: laboratoryIntroduction
    },
    {
      path: '/projectIntroduction',
      name :'projectIntroduction',
      component: projectIntroduction
    },
    {
      path:'/projectManagement',
      name:'projectManagement',
      component:projectManagement
    },
    {
      path:'/upLoadAssembly',
      name:'upLoadAssembly',
      component:upLoadAssembly
    },
    {
      path: '/BackHome',
      name: 'BackHome',
      component: BackHome,

      children:
      [{
        path:'/BackHome/WeekAnnals',
        component:WeekAnnals
      },
      {
        path:'/BackHome/ApplyLaboratoryList',
        component:ApplyLaboratoryList
      },{
        path:'/BackHome/Journal',
        component:Journal
      },
      {
        path:'/BackHome/MenuManager',//菜单管理界面
        component:MenuManager
      }]
    },
      {
      path:'/MemberIntroduction',
      name:'MemberIntroduction',
      component:MemberIntroduction
      
    },
    {
      path:'/BackHome/Journal',
      name:'Journal',
      component:Journal
      
    }
  ]
})
